package com.example.infrastructure.api.organization.vo;

import com.example.infrastructure.domain.organization.aggregate.Organization;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * {@link Organization} 查询对象
 * <br/>
 * 支持精准查询，嵌套查询
 *
 * @author lxh
 * @date 2020/11/18 上午10:59
 **/
@Data
public class OrganizationVo {
    private String orgId;

    @NotEmpty(message = "组织机构名不允许为空")
    private String orgName;

    private OrganizationVo parent;
}
